//
//  VIPZegoVideoCaptureFromScreen.h
//  TTProduct
//
//  Created by Taurin on 2020/1/2.
//  Copyright © 2020 TTProduct. All rights reserved.
//

//#include <ZegoLiveRoomOSX/ZegoVideoCapture.h>
#import <ZegoLiveRoomOSX/zego-api-external-video-capture-oc.h>
#import "ZegoVideoCaptureScreenDevice.h"

@interface VIPZegoVideoCaptureFromScreen : NSObject <ZegoVideoCaptureDevice>

@property (nonatomic, assign) CMTime currentPts;

- (void)captureOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnectrion:(AVCaptureConnection*)connection;

- (void)captureOutputPixelBuffer:(CVPixelBufferRef)pixelBuffer timeStamp:(CMTime)time;

@property (nonatomic, assign, readonly) BOOL isCapturing;

@end

@interface VIPZegoVideoCaptureScreenFactory : NSObject <ZegoVideoCaptureFactory>

@property (nonatomic, strong, readonly) VIPZegoVideoCaptureFromScreen *screenDevice;

@property (nonatomic, assign) CaptureSource source;

@end


